public class Hand {
    /**
     * (1)私有成员变量包括手指长度length，手掌面积area和握力grip；
     * (2)定义构造方法初始化所有成员变量;
     * (3)省略setter和getter方法；
     * (4)功能方法包括：catching(String thing)方法抓东西，getInfo()方法取得Hand的所有信息
     * */
    private double length;
    private double area;
    private double grip;

    Hand(){
        length = 0;
         area = 0;
         grip = 0;
    }

    Hand(double length, double area, double grip){
        this.length = length;
        this.area = area;
        this.grip = grip;
    }

    public void catching(String thing) {
        System.out.println("抓取" + thing);
    }

    public void getInfo() {
        System.out.println("手指长度:" + length +" cm" + " 手掌面积: " + area + " cm^2" + " 握力: " + grip + " kg");
    }
}
